<? if(!defined('IN')) exit('Access Denied');?>
<?php include template("header.htm"); ?>

<script type="text/javascript">
function check(){
if(document.Contact.name.value==''){
alert('姓名不能为空');
document.Contact.name.focus();
return false;
}
if(document.Contact.title.value==''){
alert('留言主题不能为空');
document.Contact.title.focus();
return false;
}
if(document.Contact.content.value==''){
alert('留言内容不能为空');
document.Contact.content.focus();
return false;
}
return true;
}
</script>
<div class="box830">
<div class="box164 fl"><?php include template("left_nav.htm"); ?>
</div>
<div class="box666 fr">
<div class="banners" style="height:160px;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="643" height="152">
                <param name="movie" value="<?=$webdir?>templates/default/images/swf/ba_lyzx.swf" />
                <param name="quality" value="high" />
                <embed src="<?=$webdir?>templates/default/images/swf/ba_lyzx.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="643" height="152"></embed>
      </object></div>
<!--留言内容开始-->
<div class="box650 fr">
<div class="title_box">
<p class="title_1"><img src="<?=$webdir?>templates/default/images/lyzx_icon.gif" border="0" width="151" height="27" /></p>
</div>
<div class="write_book_box">
<form id="quickcontact" method="post" onsubmit="return check();" action="<?=$webdir?>plug/book.php?id=<?=$id?>" name="Contact">
<table width="100%" height="25" cellspacing="5">
                  <tr>
                    <td align="right" bgcolor="#f4f4ff">姓名：</td>
                    <td bgcolor="#f4f4ff"><input id="Full_Name" size="20" name="name" type="text" />
                    <span style="color:red">*</span></td>
                  </tr>
  <tr>
                    <td align="right">单位名称：</td>
                    <td><input id="Companyname" size="50" name="company" type="text" /></td>
                  </tr>
                  <tr>
                    <td align="right" bgcolor="#f4f4ff">联系方式：</td>
                    <td bgcolor="#f4f4ff"><input id="Businessname" size="50" name="contact" type="text" /></td>
                  </tr>
  <tr>
                    <td align="right">留言主题：</td>
                    <td><input id="title" size="50" name="title" type="text" /><span style="color:red">*</span></td>
                  </tr>
                  <tr  bgcolor="#f4f4ff">
                    <td align="right">留言内容：</td>
                    <td><textarea id="message" rows="5" cols="62" name="content"></textarea>
                    <span style="color:red">*</span></td>
                  </tr>
                  <tr>
                    <td align="right">&nbsp;</td>
                    <td><input name="submit" type="submit" class="bt" value="提交留言" /></td>
                  </tr>
                </table>
</form>
</div>
<div class="title_box">
<p class="title_1"><img src="<?=$webdir?>templates/default/images/lyzx_icon_list.gif" border="0" width="151" height="27" /></p>
</div>
<div class="book_list">
<? $cmsarray=book(5,1,1)?><? if(is_array($cmsarray)) for($i=0; $i<count($cmsarray); $i++) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="tline">
  <tr>
    <td rowspan="4" align="center" class="book_name">留言人：<br><?=$cmsarray[$i]["name"]?></td>
<td width="40" class="bline">主题：</td>
    <td class="bline"><span style="float:left; width:430px; overflow:hidden;"><?=$cmsarray[$i]["title"]?></span> <span style="float:right;"><?=$cmsarray[$i]["time"]?></span></td>
  </tr>
  <tr>
    <td valign="top" width="40">内容：</td>
    <td><?=$cmsarray[$i]["content"]?></td>
  </tr>
  <tr>
    <td colspan="2" class="blue bline"><b class="book_icon_1">管理员回复：</b><?=$cmsarray[$i]["replytime"]?></td>
  </tr>
  <tr>
    <td colspan="2" class="blue"><?=$cmsarray[$i]["reply"]?></td>
  </tr>
</table>

<? } ?>
	
<p class="fy" style="text-align:right;"><!--分页，使用样式1，css使用page样式--><?=showpage(1,"page","curr")?><!--分页结束--></p><br />
</div>
</div>
<!--留言内容END-->
</div>
</div>
<?php include template("footer.htm"); ?>
